/* 主布局容器 */
.main-layout {
    min-height: 100vh;
}

/* 头部样式 */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 64px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.collapse-button {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    display: flex;
    align-items: center;
    padding-right: 12px;
    border-right: 1px solid #f0f0f0;
    height: 32px;
}

.header-center {
    display: flex;
    gap: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-container {
    border: 1px solid #e8e8e8;
    padding: 6px 16px;
    border-radius: 6px;
    background-color: #fff;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}

.logo-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d9d9d9;
    transform: translateY(-2px);
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.user-dropdown {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* 内容区域样式 */
.site-layout {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 64px);
}

/* 侧边栏样式 */
.main-sider {
    transition: all 0.3s !important;
    z-index: 5;
    overflow: hidden;
    height: 100%;
    position: relative;
    left: 0;
}

.sider-menu-wrapper {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 8px;
}

.side-menu {
    border-right: none;
    padding: 8px;
}

.side-menu .MuiListItemButton-root {
    border-radius: 6px;
    margin: 4px 0;
}

.side-menu .MuiListItemButton-root:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.side-menu .MuiListItemButton-root.Mui-selected {
    font-weight: 600;
}

/* 主内容区域 */
.main-content {
    padding: 24px;
    overflow: auto;
    height: 100%;
}

.content-wrapper {
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: calc(100% - 48px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-header {
        padding: 0 16px;
    }

    .main-content {
        padding: 16px;
    }

    .content-wrapper {
        padding: 16px;
    }
}

/* 美化滚动条 */
.sider-menu-wrapper::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.sider-menu-wrapper::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.sider-menu-wrapper::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.sider-menu-wrapper::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
    background-color: transparent;
}
